#pragma once

#include <butil/logging.h>
#include <brpc/server.h>
#include <frpc.pb.h>
#include <butil/fast_rand.h>
namespace frpcType{

   class PublicServiceImpl : public PublicSvc {
public:
    PublicServiceImpl() {};
    virtual ~PublicServiceImpl() {};
    virtual void GetRandom(google::protobuf::RpcController* cntl_base,
                      const DefaultArg* request,
                      DefaultArg* response,
                      google::protobuf::Closure* done) {

        brpc::ClosureGuard done_guard(done);
        response->add_arg_int64(int64_t(butil::fast_rand()));

    }
    virtual void VerifyUser(google::protobuf::RpcController* cntl_base,
                      const DefaultArg* request,
                      DefaultArg* response,
                      google::protobuf::Closure* done) {

        brpc::ClosureGuard done_guard(done);

    }

    
};
    

}